import request from '@/utils/request'

//查询应收销售订单列表
export function sellFormList(query){
  return request({
    url: '/bill/sellform/baseList',
    method:'get',
    params: query
  })
}
// 查询销售报表列表
export function listSellform(query) {
  return request({
    url: '/bill/sellform/list',
    method: 'get',
    params: query
  })
}

// 查询销售报表详细
export function getSellform(autoid) {
  return request({
    url: '/bill/sellform/' + autoid,
    method: 'get'
  })
}

// 新增销售报表
export function addSellform(data) {
  return request({
    url: '/bill/sellform',
    method: 'post',
    data: data
  })
}

// 修改销售报表
export function updateSellform(data) {
  return request({
    url: '/bill/sellform',
    method: 'put',
    data: data
  })
}

// 删除销售报表
export function delSellform(autoid) {
  return request({
    url: '/bill/sellform/' + autoid,
    method: 'delete'
  })
}

// 导出销售报表
export function exportSellform(query) {
  return request({
    url: '/bill/sellform/export',
    method: 'get',
    params: query
  })
}

// 导出销售报表
export function resoveSellform(id) {
  return request({
    url: '/bill/sellform/solveSettle/' + id,
    method: 'get'
  })
}

// 导出销售订单
export function exportSellList(query) {
  return request({
    url: '/bill/sellform/exportList',
    method: 'get',
    params: query
  })
}

// 销售报表列表
export function rptSellForm(query) {
  return request({
    url: '/bill/sellform/rptSellForm',
    method: 'get',
    params: query
  })
}

// 销售订单详情
export function viewSellForm(query) {
  return request({
    url: '/bill/sellform/detail',
    method: 'get',
    params: query
  })
}

// 销售订单附件
export function getFileinfo(query) {
  return request({
    url: '/system/fileinfo/getFileinfo',
    method: 'get',
    params: query
  })
}
